package com.yxe.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yxe.enums.PayType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;


@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TbPay对象", description="")
@JsonSerialize(using = com.yxe.serializer.PaySerializer.class)
public class Pay implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "pay_id", type = IdType.AUTO)
    private Integer payId;

    @ApiModelProperty(value = "费用：1：电费，2：水费，3：燃气费，4：房租")
    private PayType payType;

    @ApiModelProperty(value = "缴费金额")
    private Float payMoney;

    @ApiModelProperty(value = "缴费月份")
    @JsonFormat(pattern = "yyyy-MM-dd",locale = "zh",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime payMonth;

    @ApiModelProperty(value = "用户id")
    private Integer userId;


}
